#pragma once
#include<iostream>
using namespace std;
class ProductBase
{
public:
	virtual void method() const = 0 {}
};
class ProductA :public ProductBase
{
public:
	void method() const override;
};

class ProductB :public ProductBase
{
public:
	void method() const override;
};
class SimpleFactory
{
public:
	 void createProduct(ProductBase* product)const ;
};